package com.linzelin.utils;

import org.junit.Test;

import java.util.UUID;


public class IDUtils {
    /**
     * 生成随机id
     * @return
     */
    public static String getId(){
        return UUID.randomUUID().toString().replaceAll("-","");
    }

    @Test
    public void test(){
         System.out.println(IDUtils.getId());
         System.out.println(IDUtils.getId());
         System.out.println(IDUtils.getId());
     }
}
